/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const goodsManageRouter = {
  path: '/goodsManage',
  component: Layout,
  redirect: '/goods/goodsManage',
  name: 'goodsManage',
  meta: {
    title: '商品管理',
    icon: 'goods'
  },
  children: [
    {
      path: 'goodsManage',
      component: () => import('@/views/goods/goods/goods.vue'),
      name: 'goodsManageList',
      meta: { title: '商品列表' }
    },
    {
      path: 'goodsStock',
      component: () => import('@/views/goods/goodsStock/goodsStock.vue'),
      name: 'goodsStockList',
      meta: { title: '商品库存记录' }
    },
    {
      path: 'goodsCat',
      component: () => import('@/views/goods/goodsCat/goodsCat.vue'),
      name: 'goodsCatManageList',
      meta: { title: '分类管理' }
    }
  ]
}
export default goodsManageRouter
